projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3b32bf
)
(mark-sexp): Mark more if repeated.
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Mon, 19 Nov 2001 22:06:10 +0000
(22:06 +0000)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Mon, 19 Nov 2001 22:06:10 +0000
(22:06 +0000)
lisp/emacs-lisp/lisp.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/lisp.el
b/lisp/emacs-lisp/lisp.el
index 0cf4f0442dd4438e01c476c2e4dc891d9359df65..ad9218b4068436de4ebde96ef492f0afae9d19c7 100644
(file)
--- a/
lisp/emacs-lisp/lisp.el
+++ b/
lisp/emacs-lisp/lisp.el
@@
-72,10
+72,14
@@
move forward across N balanced expressions."
(defun mark-sexp (&optional arg)
"Set mark ARG sexps from point.
The place mark goes is the same place \\[forward-sexp] would
-move to with the same argument."
+move to with the same argument.
+If this command is repeated, it marks the next ARG sexps after the ones
+already marked."
(interactive "p")
(push-mark
(save-excursion
+ (if (and (eq last-command this-command) (mark t))
+ (goto-char (mark)))
(forward-sexp (or arg 1))
(point))
nil t))